//
//  SetHvacTempUnitApi.m
//  AFNetworking
//
//  Created by Henry on 2023/3/2.
//

#import "SetHvacTempUnitApi.h"
@interface SetHvacTempUnitApi()

@property(nonatomic,assign)NSInteger flag;

@end
@implementation SetHvacTempUnitApi

-(id)initWithDevId:(NSString *)thingName withisST:(NSInteger)flag{
    if(self = [super init]){
        self.thingName = thingName;
        self.flag = flag;
    }
    return self;
}


-(id)getTopic{
    return [NSString stringWithFormat:@"/command/platform/%@",self.thingName];
}

-(id)getCommandContent{
    return @{@"command":@"SetTemperatureUnit",@"param":@{@"value":@(self.flag)}};
}

-(id)getSubcribeTopic{
    return [NSString stringWithFormat:@"$aws/things/%@/shadow/name/%@/update/accepted",self.thingName,self.thingTypeName];
}


@end
